#!/bin/bash

pid=`ps -ef | grep "smartcs"|grep -v grep|awk '{print $2}'`
for id in $pid
do
        echo $id
        kill -9 $id
        echo "killed $id"
done
# rm -rf /home/gitlab-runner/.m2/repository/com/xling
nohup /home/maven/bin/mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dxling.swagger.host=61.55.140.248:7000/api"> smartcs.log 2>&1 &